package org.apache.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;

public final class add_002dperson_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent {

static private org.apache.jasper.runtime.ProtectedFunctionMapper _jspx_fnmap_0;

static {
  _jspx_fnmap_0= org.apache.jasper.runtime.ProtectedFunctionMapper.getMapForFunction("stl:encode", fr.inria.semtags.util.Helper.class, "encode", new Class[] {java.lang.String.class});
}

  private static java.util.List _jspx_dependants;

  static {
    _jspx_dependants = new java.util.ArrayList(2);
    _jspx_dependants.add("/WEB-INF/c.tld");
    _jspx_dependants.add("/WEB-INF/fn.tld");
  }

  public Object getDependants() {
    return _jspx_dependants;
  }

  public void _jspService(HttpServletRequest request, HttpServletResponse response)
        throws java.io.IOException, ServletException {

    JspFactory _jspxFactory = null;
    PageContext pageContext = null;
    HttpSession session = null;
    ServletContext application = null;
    ServletConfig config = null;
    JspWriter out = null;
    Object page = this;
    JspWriter _jspx_out = null;
    PageContext _jspx_page_context = null;


    try {
      _jspxFactory = JspFactory.getDefaultFactory();
      response.setContentType("text/html;charset=UTF-8");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">\n");
      out.write("<html>");
      out.write("<head>");
      out.write("<title>");
      out.write("Application de test de Semtag");
      out.write("</title>");
      out.write("<meta content=\"text/html;charset=UTF-8\" http-equiv=\"Content-Type\"/>");
      out.write("<link href=\"tutorial.css\" type=\"text/css\" rel=\"stylesheet\"/>");
      out.write("</head>");
      out.write("<body>");
      if (_jspx_meth_stl_005fmodify_002dannot_005f0(_jspx_page_context))
        return;
      out.write("<p>");
      out.write("A new person named \"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param['name']}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("\" was created.");
      out.write("</p>");
      out.write("</body>");
      out.write("</html>");
    } catch (Throwable t) {
      if (!(t instanceof SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          out.clearBuffer();
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
      }
    } finally {
      if (_jspxFactory != null) _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }

  private boolean _jspx_meth_stl_005fmodify_002dannot_005f0(PageContext _jspx_page_context)
          throws Throwable {
    PageContext pageContext = _jspx_page_context;
    JspWriter out = _jspx_page_context.getOut();
    //  stl:modify-annot
    fr.inria.semtags.edit.annot.ModifyTag _jspx_th_stl_005fmodify_002dannot_005f0 = new fr.inria.semtags.edit.annot.ModifyTag();
    _jspx_th_stl_005fmodify_002dannot_005f0.setJspContext(_jspx_page_context);
    _jspx_th_stl_005fmodify_002dannot_005f0.setDynamicAttribute(null, "rdf", new String("http://www.w3.org/1999/02/22-rdf-syntax-ns#"));
    _jspx_th_stl_005fmodify_002dannot_005f0.setDynamicAttribute(null, "humans", new String("http://www.inria.fr/2007/04/17/humans.rdfs#"));
    _jspx_th_stl_005fmodify_002dannot_005f0.setFile("human_2007_04_17.rdf");
    _jspx_th_stl_005fmodify_002dannot_005f0.setForceUpdate(true);
    _jspx_th_stl_005fmodify_002dannot_005f0.setXpath("/rdf:RDF");
    _jspx_th_stl_005fmodify_002dannot_005f0.setKind("add");
    _jspx_th_stl_005fmodify_002dannot_005f0.setJspBody(new add_002dperson_jspHelper( 0, _jspx_page_context, _jspx_th_stl_005fmodify_002dannot_005f0, null));
    _jspx_th_stl_005fmodify_002dannot_005f0.doTag();
    return false;
  }

  private class add_002dperson_jspHelper
      extends org.apache.jasper.runtime.JspFragmentHelper
  {
    private javax.servlet.jsp.tagext.JspTag _jspx_parent;
    private int[] _jspx_push_body_count;

    public add_002dperson_jspHelper( int discriminator, JspContext jspContext, javax.servlet.jsp.tagext.JspTag _jspx_parent, int[] _jspx_push_body_count ) {
      super( discriminator, jspContext, _jspx_parent );
      this._jspx_parent = _jspx_parent;
      this._jspx_push_body_count = _jspx_push_body_count;
    }
    public boolean invoke0( JspWriter out ) 
      throws Throwable
    {
      out.write("<humans:Person xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\" xmlns:humans=\"http://www.inria.fr/2007/04/17/humans.rdfs#\" rdf:ID=\"" + (java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${stl:encode(param['name'])}", java.lang.String.class, (PageContext)_jspx_page_context, _jspx_fnmap_0, false) + "\">");
      out.write("<humans:name>");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${param['name']}", java.lang.String.class, (PageContext)_jspx_page_context, null, false));
      out.write("</humans:name>");
      out.write("</humans:Person>");
      return false;
    }
    public void invoke( java.io.Writer writer )
      throws JspException
    {
      JspWriter out = null;
      if( writer != null ) {
        out = this.jspContext.pushBody(writer);
      } else {
        out = this.jspContext.getOut();
      }
      try {
        switch( this.discriminator ) {
          case 0:
            invoke0( out );
            break;
        }
      }
      catch( Throwable e ) {
        if (e instanceof SkipPageException)
            throw (SkipPageException) e;
        throw new JspException( e );
      }
      finally {
        if( writer != null ) {
          this.jspContext.popBody();
        }
      }
    }
  }
}
